#ifndef WEAVEMOTIONCONDITIONDIALOG_H
#define WEAVEMOTIONCONDITIONDIALOG_H

#include <QDialog>
#include "../CommunicateDelegate/communicatenormaldelegate.h"

namespace Ui {
class WeaveMotionConditionDialog;
}

class WeaveMotionConditionDialog : public QDialog
{
    Q_OBJECT

public:
    explicit WeaveMotionConditionDialog(int styleId,CommunicateNormalDelegate *communicateNormalIn,
                                        QWidget *parent = 0);
    ~WeaveMotionConditionDialog();

    void initialDisplayStyle(int styleId);
public slots:
    void showView_slot();

private slots:
    void on_saveBtn_clicked();

    void on_returnBtn_clicked();

    void on_comboBox_index_currentIndexChanged(int index);

private:
    void updateConditionSHow(int index);
    void updateUiShow(WeaveMotionCondition weaveCondition);

private:
    Ui::WeaveMotionConditionDialog *ui;
    CommunicateNormalDelegate *communicateNormalDelegate;
};

#endif // WEAVEMOTIONCONDITIONDIALOG_H
